﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using ThuatToan.Utils;

public partial class Contact : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnGui_Click(object sender, EventArgs e)
    {
        try
        {
            SendEmail.Send(ConfigurationSettings.AppSettings["useremail"], txtTieude.Text.Trim(), txtNoidung.Text);
            lbMessage.Text = "Gửi thành công !";
        }
        catch
        {
            lbMessage.Text = "Gửi thất bại !";
        }

    }
}